
TARGET = osUtils



TARGETSRC=$(TARGET).cc
TARGETO = $(TARGET).o
TARGETSO = lib$(TARGET).so

# Linux/gcc-2.96 version
CXX           = g++ 
CXXFLAGS      = -O -g3 -Wall -fPIC -I./include
LD            = g++ 
LDFLAGS       = -O -g3 
SOFLAGS       = -Wl,-soname,$(TARGETSO) -shared
LIBS          = -lg++ -lm -ldl -rdynamic -L./lib
GLIBS         = -lg++ -lm -ldl -rdynamic -L./lib





install: $(TARGETSO)
	@echo -e "\t---> -all- rule..."


$(TARGETSO): $(TARGETCINTO)
	@echo -e "\t---> -$(TARGETSO)- rule..."
	@$(CXX) $(CXXFLAGS) -c src/*.cc -I.include/ #-o $(TARGETO) -I.
	@$(LD) $(SOFLAGS) $(LDFLAGS) *.o -o lib/$(TARGETSO) -I./include
	@rm -rf *.o



#
#


clean:
	@rm -f lib/$(TARGETSO)

